import { Validator } from "vee-validate";
export default {
  // 手机号
  mobile(filed, msg) {
    Validator.extend(filed, {
      getMessage: () => msg,
      validate: value =>
        /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/.test(
          value
        )
    });
  }
};
